package com.usian.account.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.account.dao.TbAccountDao;
import com.usian.account.pojo.TbAccount;
import com.usian.account.service.TbAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TbAccountServiceimpl extends ServiceImpl<TbAccountDao, TbAccount> implements TbAccountService {
    @Autowired
    private TbAccountDao tbAccountDao;
    @Override
    public void debit(String userId, int money) {
        tbAccountDao.debit(userId,money);
    }
}
